package cn.yshujia.transform;

import cn.yshujia.domain.entity.Resources;
import cn.yshujia.domain.vo.ResourcesVO;

/**
 * @author YShuJia
 * @create 2025/2/24
 * @description ResourcesTransform
 */

public class ResourcesTransform {
	public static ResourcesVO entity2VO (Resources dto) {
		if (dto == null) {
			return null;
		}
		ResourcesVO resourcesVO = new ResourcesVO();
		resourcesVO.setId(dto.getId());
		resourcesVO.setName(dto.getName());
		resourcesVO.setUrl(dto.getUrl());
		resourcesVO.setSize(dto.getSize());
		resourcesVO.setRemark(dto.getRemark());
		resourcesVO.setCreateTime(dto.getCreateTime());
		resourcesVO.setStatus(dto.getStatus());
		return resourcesVO;
	}
}
